package com.lovo.pis.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.pis.dto.*;
import com.lovo.pis.mapper.LogMapper;
import com.lovo.pis.mapper.PowerMapper;
import com.lovo.pis.mapper.UserMapper;
import com.lovo.pis.service.IPowerService;
import com.lovo.pis.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

@Service
public class PowerServiceImpl extends ServiceImpl<PowerMapper, PowerBean> implements IPowerService {

    @Autowired
    PowerMapper powerMapper;

    @Override
    public List<PowerBean> queryAllPower() {
        return powerMapper.selectList(null);
    }
}
